//-
   Created by liaohui1080 on 15/5/23.

doctype html
html
    head(lang='en')
        title
        meta(http-equiv='X-UA-Compatible', content='IE=edge')
        meta(name='viewport', content='width=device-width, initial-scale=1.0')
        meta(http-equiv='Content-Type', content='text/html')
        meta(charset='UTF-8')
        link(href='css/chushihua.css', rel='stylesheet', type='text/css', media='screen')
        link(href='css/table.css', rel='stylesheet', type='text/css', media='screen')
    body

        .cebian-btn
            .PIE.cebian-btn-val 显示

        #tuodong.mianban
            table.m-table
                thead
                    tr.tuodong
                        th.cola ID
                        th 传感器
                        th.cola lng
                        th.cola lat
                        th.colb 值
                        th.colb 超限
                        th.colb 添加点
                tbody.table-hang
                    - for(var a=1; a<=10; a++)
                        tr
                            td 1
                            td 瓦斯
                            td 瓦斯瓦
                            td 39.32987
                            td 21
                            td 是
                            td 移除


            .caozuo
                a.shanchu 删除
                a.baocun 保存
        script(type='text/javascript', src='js/jquery-1.9.0.min.js')
        script(type='text/javascript', src='js/tuodongChajian.js')
        script(type='text/javascript', src='js/PIE.js')
        script.
            $(function () {
                $.Move('#tuodong');
                var a = 1;


                try {
                    $('.PIE').each(function () {
                        PIE.attach(this);
                    });
                } catch (e) {}

                $(".table-hang tr:odd").addClass("table-tr-hover");

                $(".table-hang tr").click(function(){

                    $(this).nextAll().find("td").removeClass("table-tr-click");
                    $(this).prevAll().find("td").removeClass("table-tr-click");
                    $(this).find("td").addClass("table-tr-click")

                });




                $(".cebian-btn").click(function(){

                    if(a==1){
                        $(".mianban").show();
                        $(this).find("div").text("隐藏");
                        a =2;
                    }else{
                        $(".mianban").hide();
                        $(this).find("div").text("显示");
                        a =1;
                    }

                });
            });
script.
    document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')
